import React from 'react'
import { useStore } from '../store/index.js'
import { observer } from 'mobx-react-lite'

function Foo() {
    const store = useStore()

    return (
        <div>
            <ul onClick={() => store.taskStore.changeList()}>
                {store.taskStore.list.map((item, index) => (
                    <li key={index}>{item}</li>
                ))}
            </ul>
        </div>
    )
}

export default observer(Foo)
